package DBPool;

import java.sql.Connection;

/**
 * Created by sunwei on 2017/9/27
 * Time:10:55
 */
public class DBPoolTest {
    public static void main(String[] args) {
        for(int i = 1; i <=40; i++) {
            Connection connection = (Connection) DBPool.getInstance().getConnection();
            System.out.println(connection+ " "+ i);
            DBPool.getInstance().releaseConnection(connection);
        }
    }
}
